import { useSelector, useDispatch as useDispatchRedux } from 'react-redux';

/**
 * @name 获取状态
 *
 * @export
 * @param {string} [key='']
 * @return {*} 
 */
export default function useStore(fn) {
    return useSelector(fn)
}
export const useDispatch = (fn) => useDispatchRedux(fn);